import request from '@/utils/request.js'
// 查看地址
export function getCity() {
	return request({
		method: 'GET',
		url: '/member/address',
	})
}
// 添加地址
export function postCityPost(data) {
	return request({
		method: 'POST',
		url: '/member/address',
		data
	})
}
// 地址详情
export function getCityGET(id) {
	return request({
		method: 'GET',
		url: `/member/address/${id}`,
	})
}
// 更新地址
export function getCityPUT(data) {
	return request({
		method: 'PUT',
		url: `/member/address/${data.id}`,
		data
	})
}
// 删除地址
export function getCityDELETE(id) {
	return request({
		method: 'DELETE',
		url: `/member/address/${id}`,
	})
}